package com.quarters.mapper;

import com.quarters.bean.ArticleOrder;
import com.quarters.bean.Notice;
import com.quarters.bean.NoticeOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 通知订单表 Mapper 接口
 * </p>
 *
 * @author 冯政尚
 * @since 2019-09-11
 */
public interface NoticeOrderMapper extends BaseMapper<NoticeOrder> {


    /**
     * @param map
     * @return 后台查询
     */
    List<NoticeOrder> selectMyPage(@Param("param") Map map);
    Integer  countMyPage (@Param("param")Map map);
    /**
     * @param map
     * @return 后台查询
     */
    List<NoticeOrder> selectMyPageAll(@Param("param") Map map);
    Integer  countMyPageAll (@Param("param")Map map);

    /**
     * @param userId
     * @param time
     * @return 根据当前用户今天发送多少次群发
     */
    List<NoticeOrder> selectByIdTime(@Param("userId")Long userId, @Param("time")String time);


    //根据订单号查询这条订单
    NoticeOrder selectByOrderNumber(@Param("orderNumber")String orderNumber);


    //订单详情
    List<NoticeOrder> selectOrderAll(@Param("param") Map map);
    Integer countOrderAll(@Param("param") Map map);


    List<NoticeOrder> selectOrder(@Param("param") Map map);
    Integer countOrder(@Param("param") Map map);


    //标签查询订单
    List<NoticeOrder> selectLableOrder(@Param("param") Map map);
    Integer  countLableOrder (@Param("param")Map map);

}
